home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Misc / msql-1.0.6 / src / makegen / directory.mm next >
Text File  |  1994-12-12  |  340b  |  18 lines

  1. #!/bin/sh
  2.  
  3. . $TOP/makegen/makegen.cf
  4.  
  5. DIR=$1
  6. TARGETS=`echo $2 | sed "s/,/ /g"`
  7.  
  8. for targ in $TARGETS
  9. do
  10.     echo "$targ ::"
  11.     echo "    @echo                    ;\\"
  12.     echo "    echo \"--> [$DIR] directory  \"            ;\\"
  13.     echo "    cd $DIR                                ;\\"
  14.     echo "    make \$(MFLAGS)    $targ            ;\\"
  15.     echo "    echo \"<-- [$DIR] done       \"        "
  16.     echo ""
  17. done
  18.